home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Invisible Universe
/
Invisible Universe (1995)(Voyager)[Mac-PC].iso
/
mac
/
MOVIES
/
MIAWS
/
_HELP.DIR
/
00020_Script_20
< prev
next >
Wrap
Text File
|
1995-11-16
|
2KB
|
77 lines
on lOpenHelpPalette curMovie, curLabel
global gHelpPalette, gFixPalObjHelp, gHelpOffScreen
global gHelpButtonList
continue
--if voidP(gHelpPalette) or (gHelpPalette = 0) then createHelpWindow
if not voidP(gFixPalObjHelp) then gFixPalObjHelp(mPatchIt)
if curMovie = "TOC.DIR" then
if curLabel = "TOCM" then go label("C")
else if char 1 of curLabel = "O" then go label("CO")
else if curLabel = "TM" then go label("CT")
else if char 1 of curLabel = "P" then go label("CP")
else if curLabel = "SM" then go label("CS")
else if curLabel = "MM" then go label("CM")
else if curLabel = "UM" then go label("CU")
else exit
else
if curMovie = "STARMAP.DIR" then go label("S")
else if curMovie = "MOVIES.DIR" then go label("M")
else if curMovie = "POETRY.DIR" then go label("P")
else if char 1 of curMovie = "O" then go label("O")
else if curMovie = "TOUR.DIR" then go label("GU")
else if curMovie = "FIND.DIR" then go label("F")
else if curMovie = "_GLOSS.DIR" then go label("G")
else if curMovie = "SHOWGLOS.DIR" then go label("G")
else exit
end if
go to the frame + 1
--put ">>> lOpenHelpPalette->gHelpButtonList" && gHelpButtonList
if gHelpOffScreen then
set gHelpOffScreen = 0
open gHelpPalette
set the rect of gHelpPalette to offset(the rect of gHelpPalette, 5000, -5000)
updateStage
end if
end lOpenHelpPalette
on lCloseHelpPalette
global gHelpPalette, gHelpOffScreen
if not gHelpOffScreen then
set gHelpOffScreen = 1
set the rect of gHelpPalette to offset(the rect of gHelpPalette, -5000, 5000)
tell the stage to updateStage
close gHelpPalette
end if
pause
end lCloseHelpPalette
on calculateStageSize
global gHStageLeft, gHStageTop, gHStageRight, gHStageBottom
if the machineType <> 256 or the stageLeft = 0 then
--Macintosh is OK, or if the stage is full-screen
set gHStageLeft = the stageLeft
set gHStageTop = the stageTop
set gHStageRight = the stageRight
set gHStageBottom = the stageBottom
else
--PC is buggy, must make corrections
set gHStageLeft = -the stageLeft -1
set gHStageTop = -the stageTop - 1
set gHStageRight = the stageRight + the stageLeft - gHStageLeft
set gHStageBottom = the stageBottom + the stageTop - gHStageTop
end if
end calculateStageSize